package com.eastfair.gateway.dto;

import com.baomidou.mybatisplus.annotation.TableName;
import com.baomidou.mybatisplus.annotation.IdType;
import com.eastfair.core.base.entity.Entity;
import java.time.LocalDateTime;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableField;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import javax.validation.constraints.NotEmpty;
import javax.validation.constraints.NotNull;
import javax.validation.constraints.Size;
import com.eastfair.core.base.entity.SuperEntity;
import lombok.Data;
import lombok.Builder;
import lombok.EqualsAndHashCode;
import lombok.NoArgsConstructor;
import lombok.AllArgsConstructor;
import lombok.ToString;
import lombok.experimental.Accessors;
import java.io.Serializable;

/**
 * <p>
 * 实体类
 * 黑名单
 * </p>
 *
 * @author ligang
 * @since 2022-08-23
 */
@Data
@NoArgsConstructor
@AllArgsConstructor
@Accessors(chain = true)
@ToString(callSuper = true)
@EqualsAndHashCode(callSuper = false)
@Builder
@ApiModel(value = "BackListUpdateDTO", description = "黑名单")
public class BackListUpdateDTO implements Serializable {

    private static final long serialVersionUID = 1L;

    @ApiModelProperty(value = "主键")
    @NotNull(message = "请填写主键", groups = SuperEntity.Update.class)
    private Long id;

    /**
     * 阻止访问ip
     */
    @ApiModelProperty(value = "阻止访问ip")
    @Size(max = 20, message = "阻止访问ip长度不能超过20")
    private String ip;
    /**
     * 阻止访问用户id
     */
    @ApiModelProperty(value = "阻止访问用户id")
    private Long userId;
    /**
     * 阻止访问的身份证号码
     */
    @ApiModelProperty(value = "阻止访问的身份证号码")
    @Size(max = 255, message = "阻止访问的身份证号码长度不能超过255")
    private String idCard;
    /**
     * 阻止访问的手机号
     */
    @ApiModelProperty(value = "阻止访问的手机号")
    @Size(max = 16, message = "阻止访问的手机号长度不能超过16")
    private String mobile;
    /**
     * 阻止访问的邮箱
     */
    @ApiModelProperty(value = "阻止访问的邮箱")
    @Size(max = 64, message = "阻止访问的邮箱长度不能超过64")
    private String email;
    /**
     * 限制时间起
     */
    @ApiModelProperty(value = "限制时间起")
    private LocalDateTime limitStart;
    /**
     * 限制时间止
     */
    @ApiModelProperty(value = "限制时间止")
    private LocalDateTime limitEnd;
    /**
     * 限制的系统场景
     */
    @ApiModelProperty(value = "限制的系统场景")
    @Size(max = 255, message = "限制的系统场景长度不能超过255")
    private String systemScene;
    /**
     * 租户id
     */
    @ApiModelProperty(value = "租户id")
    private Long tenantId;
    /**
     * 项目id
     */
    @ApiModelProperty(value = "项目id")
    private Long projectId;
    /**
     * 是否生效(默认1：可用 0:不可用)
     */
    @ApiModelProperty(value = "是否生效(默认1：可用 0:不可用)")
    private Integer isEnabled;
    /**
     * 是否删除(默认0：未删除 1:已删除)
     */
    @ApiModelProperty(value = "是否删除(默认0：未删除 1:已删除)")
    private Integer isDeleted;
}
